package org.example.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-03-27
 */
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    @TableId(value = "g_id", type = IdType.AUTO)
    private Integer gId;

    /**
     * 商品名称
     */
    private String gName;

    /**
     * 商品分类
     */
    private String gCatagory;

    /**
     * 商品商标
     */
    private String gBrand;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 商品成本价
     */
    private BigDecimal gCostprice;

    /**
     * 商品的售价
     */
    private BigDecimal gSellprice;

    private Image images;
    /**
     * 商品的库存
     */
    private Integer gStock;

    public Integer getgId() {
        return gId;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }

    public String getgCatagory() {
        return gCatagory;
    }

    public void setgCatagory(String gCatagory) {
        this.gCatagory = gCatagory;
    }

    public String getgBrand() {
        return gBrand;
    }

    public void setgBrand(String gBrand) {
        this.gBrand = gBrand;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getgCostprice() {
        return gCostprice;
    }

    public void setgCostprice(BigDecimal gCostprice) {
        this.gCostprice = gCostprice;
    }

    public BigDecimal getgSellprice() {
        return gSellprice;
    }

    public void setgSellprice(BigDecimal gSellprice) {
        this.gSellprice = gSellprice;
    }

    public Integer getgStock() {
        return gStock;
    }

    public void setgStock(Integer gStock) {
        this.gStock = gStock;
    }

    @Override
    public String toString() {
        return "Goods{" +
        ", gId=" + gId +
        ", gName=" + gName +
        ", gCatagory=" + gCatagory +
        ", gBrand=" + gBrand +
        ", description=" + description +
        ", gCostprice=" + gCostprice +
        ", gSellprice=" + gSellprice +
        ", gStock=" + gStock +
        "}";
    }
}
